package com.songlanyun.modules.loverecord.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.enums.LoveConstant;
import lombok.Data;

/**
 * 会员爱心值的收支记录
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-09 16:56:00
 */
@Data
@TableName("yxt_user_love_record")
public class UserLoveRecordEntity extends RootEntity<Long,UserLoveRecordEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 爱心值
     */
    private Integer value;
    /**
     * 帐单类型：
     * false：支出
     * true：收入
     */
    private Boolean billType;
    /**
     * 操作类型
     */
    private LoveConstant.ModelType modelType;
    /**
     *
     */
    private Long modelId;
    /**
     * 备注
     */
    private String remark;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @Override
    public Long getIdentity() {
        return this.getId();
    }
}
